package com.wapper;

import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class bigint {


    public static void main(String[] args) {
        BigInteger b1=new BigInteger("2222222222222222222222222222222222");
        BigInteger b2 = new BigInteger("1");
        System.out.println(b1.add(b2));


        LocalDate date = LocalDate.now();
        LocalDateTime date2=LocalDateTime.now();
        System.out.println(date2);
        //g格式化
        //创建DatetimeFormant
        DateTimeFormatter dtf=DateTimeFormatter.ofPattern("yyyy-MM-dd日 HH-mm分钟ss秒");

 String str=dtf.format(date2);
        System.out.println(str);

    }


}
